<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>发布公告</title>
</head>
<body>
<h1>发布公告</h1>
<% if (request.getAttribute("error") != null) { %>
<p style="color: red;"><%= request.getAttribute("error") %></p>
<% } %>
<form action="publishNotice" method="post">
  <label for="title">标题:</label><br>
  <input type="text" id="title" name="title" required><br>
  <label for="content">内容:</label><br>
  <textarea id="content" name="content" rows="4" cols="50" required></textarea><br>
  <label for="publisher">发布者:</label><br>
  <input type="text" id="publisher" name="publisher" required><br><br>
  <input type="submit" value="发布">
</form>
</body>
</html>